﻿using Microsoft.AspNetCore.Mvc;
using ZeroSumTemplate.Core.ApplicationServices.Tests;
using ZeroSumTemplate.Core.ApplicationServices.Tests.Dtos.In;

namespace ZeroSumTemplate.Api.Controllers;

[ApiController]
[Route("[controller]")]
public class TestController : ControllerBase
{
    private readonly ITestApplicationService _testApplicationService;

    public TestController(ITestApplicationService testApplicationService)
    {
        _testApplicationService = testApplicationService;
    }

    [HttpPost]
    public async Task Add([FromBody] AddTestDto dto)
    {
        await _testApplicationService.Add(dto);
    }

}